			</div> <!-- .container -->
		</div> <!-- #content -->
		
		<div id="footer">
			<div class="container">
				<?php	
				if (is_front_page() && is_active_sidebar('footer_home')) : dynamic_sidebar('footer_home'); 			
				elseif (is_archive() && is_active_sidebar('footer_posts')) : dynamic_sidebar('footer_posts');
				elseif (is_single() && is_active_sidebar('footer_posts')) : dynamic_sidebar('footer_posts');
				elseif (is_home() && is_active_sidebar('footer_posts')) : dynamic_sidebar('footer_posts');
				elseif (is_page() && is_active_sidebar('footer_pages')) : dynamic_sidebar('footer_pages');		
				else : 
				dynamic_sidebar('footer_default'); 
				endif; 
				?>
			</div> 
		</div> <!-- end #footer -->
		<?php
		/**
		 * Output the main menu if set
		 */
		$args = array(
			'theme_location' 	=> 'footer-menu',
			'container'       	=> false,
			// 'container_class' 	=> 'container',
			'menu_id'        	=> 'footer-nav',
			'menu_class'		=> 'hori-nav container',
			'echo'				=> false,
			'fallback_cb' 		=> false,
			'depth'				=> 1
		);
		$menu = wp_nav_menu($args);
		if ($menu) :
		?>
		<div id="footer-navigation">
			<?php
				echo $menu;
			?>
		</div> <!-- end #primary-nav -->
		<?php
		endif;
		?>
	</div> <!-- #wrapper -->
	<?php 
	wp_footer(); 
	?>
</body>
</html>